<%= form_for(@groups_post) do |f| %>
  <% if @groups_post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@groups_post.errors.count, "error") %> prohibited this groups_post from being saved:</h2>
      <ul>
      <% @groups_post.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

    <%= f.hidden_field :groups_thread_id %>

  <div class="field">
    <%= f.text_area :content, :class=> 'bb-code' %>
  </div>
  
  <div class="actions">
    <%= f.submit 'Spremi' %>
  </div>

<% end %>
